/*
 ------------------------------------------------------------------------------
 Copyright (C) 2006-2007 Team Blur.

 This file is part of the Quantum Engine source code.

 The Quantum Engine source code is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or (at your
 option) any later version.

 The Quantum Engine source code is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 more details.

 You should have received a copy of the GNU General Public License along with
 the Quantum Engine source code; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 ------------------------------------------------------------------------------
*/


#ifndef __COLOR_H__
#define __COLOR_H__


#define COLOR_MASK				31

// Color indices
#define COLOR_DEFAULT			18

#define COLOR_BLACK				0
#define COLOR_RED				1
#define COLOR_GREEN				2
#define COLOR_YELLOW			3
#define COLOR_BLUE				4
#define COLOR_CYAN				5
#define COLOR_MAGENTA			6
#define COLOR_WHITE				7

extern odVec4	colorTable[32];

dword			PackColor (const odVec4 &color);
dword			PackColor4 (float r, float g, float b, float a);
void			UnpackColor (dword c, odVec4 &color);
void			UnpackColor4 (dword c, float *r, float *g, float *b, float *a);


#endif	// __COLOR_H__
